﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CookBook.ASP.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
    <link href="style/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div class="modwrapper">Mod Wrapper 1</div>
        <div class="modwrapper">Mod Wrapper 1</div>
        <div class="modwrapper">Mod Wrapper 1</div>
        <div class="modwrapper">Mod Wrapper 1</div>
    </div>
    </form>
    <script type="text/jscript">
        $(document).ready(function () {
            $(".modwrapper").click(function () {
                $(".modwrapper p").remove();
                $(this).append("<p> I am appended <p>");
            });
        });
    </script>
</body>
</html>
